package com.meitutest.autoscript.T9;

import org.junit.Before;
import org.junit.Test;

/**
 * Creaed by CrystalChen on 2018/4/2.
 */

public class T9Test {
    T9 t9;


    @Before
    public void before() {
        t9 = new T9();
    }

    @Test
    public void ctsOrGts() throws Exception {
        t9.wakeupScreen();
        t9.screenAlwaysOn();
        t9.swichAospByCmd();
        t9.connectWifi();
        t9.openBlueTeeth();
        t9.openGPS();
        t9.openBrowser();
        t9.nonScreenLock();
        t9.set24Mode();
        t9.swichEng();


    }

    @Test
    public void recoveryAll() throws Exception {
        t9.wakeupScreen();
        t9.recoveryAll();
    }

    @Test
    public void fluencyTest() {
//        while (true) {
//            t9.uiDevice.click(555, 1750);
//            try {
//                Thread.sleep(1000);
//            } catch (InterruptedException e) {
//                e.printStackTrace();
//            }
//        }
        FluencyHelper fluencyHelper = new FluencyHelper(t9);
        fluencyHelper.calenderTest01();
        fluencyHelper.contactTest01();
        fluencyHelper.dailerTest01();
        fluencyHelper.mmsTest01();
        fluencyHelper.noteTest01();
        fluencyHelper.photoTest01();
        fluencyHelper.photoTest02();
    }
}
